package com.ruoyi.system.service;

import com.ruoyi.common.vo.PayReq;
import com.ruoyi.system.domain.vo.NotifyResult;
import com.ruoyi.system.domain.vo.PaySubmitOutVo;
import com.ruoyi.system.domain.vo.PaySubmitVo;

import javax.servlet.http.HttpServletRequest;

public interface IPayService {
    /**
     * 发起支付请求
     * @param paySubmitVo
     * @param request
     * @return
     */
    PaySubmitOutVo paySubmit(PaySubmitVo paySubmitVo, HttpServletRequest request) throws Exception;

    /**
     * 构建Sign
     * @param object
     */
    String buildSign(Object object);

    /**
     * 支付回调
     * @param notifyResult
     * @return
     */
    String payNotify(NotifyResult notifyResult);
}
